From: Gerd Moellmann Date: Mon, 14 May 2001 12:46:12 +0000 (+0000) Subject: (split_font_name): Make sure to leave the loop X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~40322 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=bd2c11629e71637f8317de6d1608cfbd34ddadf4;p=emacs.git (split_font_name): Make sure to leave the loop with the right value of `i'. --- diff --git a/src/xfaces.c b/src/xfaces.c index a50ec9ae2a9..93acc8b5317 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -2205,9 +2205,10 @@ split_font_name (f, font, numeric_p) { char *p = xstrlwr (font->name) + 1; - for (; i < XLFD_LAST; ++i) + while (i < XLFD_LAST) { font->fields[i] = p; + ++i; /* Pixel and point size may be of the form `[....]'. For BNF, see XLFD spec, chapter 4. Negative values are